package com.life.view;

import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JPanel;

import com.life.model.LifeModel;

public class TemplatePanel extends JPanel
{
    int width = 10;
    int height = 10;
    
    public TemplatePanel()
    {
	init();
    }
    
    public void init()
    {
	this.setLayout(null);
	
	LifeModel model = new LifeModel(width,height);
	
	TemplateLifeCanvas panel = new TemplateLifeCanvas(model);
	
	model.setAlive(width/2-1,height/2-1);
	panel.setBounds(30,30,220,200);
	
	this.add(panel);
    }

}
